package cn.hh.wechatkit.util;

import static cn.hh.wechatkit.helper.WxConst.Auth_GET_Url;

/**
 * Created this one by HMH on 2017/5/22.
 */
public class WxAuthoUtil {

    /**
     * 获取授权页面
     * @param APPID Appid
     * @param REDIRECT_URI 跳转页面
     * @param SCOPE 授权域
     * @param STATE 状态码
     * @return 授权页面Url
     */
    public static String getAuthoUrl(String APPID, String REDIRECT_URI,String SCOPE,String STATE) {
        return Auth_GET_Url
                .replace("APPID", APPID)
                .replace("REDIRECT_URI", REDIRECT_URI)
                .replace("SCOPE", SCOPE)
                .replace("STATE", STATE);
    }

}
